Integrand size = 43, antiderivative size = 123 \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {C x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {C \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.093, Rules used = {17, 2717, 2715, 8} \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}}+\frac {C x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {C \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}{2 d} \]
[In]
[Out]
Rule 8
Rule 17
Rule 2715
Rule 2717
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {b \cos (c+d x)} \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx}{\sqrt {\cos (c+d x)}} \\ & = \frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {\left (B \sqrt {b \cos (c+d x)}\right ) \int \cos (c+d x) \, dx}{\sqrt {\cos (c+d x)}}+\frac {\left (C \sqrt {b \cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{\sqrt {\cos (c+d x)}} \\ & = \frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {C \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {\left (C \sqrt {b \cos (c+d x)}\right ) \int 1 \, dx}{2 \sqrt {\cos (c+d x)}} \\ & = \frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {C x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {C \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.50 \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {\sqrt {b \cos (c+d x)} (2 (2 A+C) (c+d x)+4 B \sin (c+d x)+C \sin (2 (c+d x)))}{4 d \sqrt {\cos (c+d x)}} \]
[In]
[Out]
Time = 9.55 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.51
method | result | size |
default | \(\frac {\sqrt {\cos \left (d x +c \right ) b}\, \left (C \cos \left (d x +c \right ) \sin \left (d x +c \right )+2 A \left (d x +c \right )+2 B \sin \left (d x +c \right )+C \left (d x +c \right )\right )}{2 d \sqrt {\cos \left (d x +c \right )}}\) | \(63\) |
risch | \(\frac {\sqrt {\cos \left (d x +c \right ) b}\, x \left (4 A +2 C \right )}{4 \sqrt {\cos \left (d x +c \right )}}+\frac {B \sin \left (d x +c \right ) \sqrt {\cos \left (d x +c \right ) b}}{d \sqrt {\cos \left (d x +c \right )}}+\frac {\sqrt {\cos \left (d x +c \right ) b}\, C \sin \left (2 d x +2 c \right )}{4 \sqrt {\cos \left (d x +c \right )}\, d}\) | \(92\) |
parts | \(\frac {A \sqrt {\cos \left (d x +c \right ) b}\, \left (d x +c \right )}{d \sqrt {\cos \left (d x +c \right )}}+\frac {B \sin \left (d x +c \right ) \sqrt {\cos \left (d x +c \right ) b}}{d \sqrt {\cos \left (d x +c \right )}}+\frac {C \sqrt {\cos \left (d x +c \right ) b}\, \left (\cos \left (d x +c \right ) \sin \left (d x +c \right )+d x +c \right )}{2 d \sqrt {\cos \left (d x +c \right )}}\) | \(101\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 212, normalized size of antiderivative = 1.72 \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\left [\frac {{\left (2 \, A + C\right )} \sqrt {-b} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \, {\left (C \cos \left (d x + c\right ) + 2 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{4 \, d \cos \left (d x + c\right )}, \frac {{\left (2 \, A + C\right )} \sqrt {b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + {\left (C \cos \left (d x + c\right ) + 2 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, d \cos \left (d x + c\right )}\right ] \]
[In]
[Out]
Time = 13.43 (sec) , antiderivative size = 184, normalized size of antiderivative = 1.50 \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\begin {cases} \frac {A x \sqrt {b \cos {\left (c + d x \right )}}}{\sqrt {\cos {\left (c + d x \right )}}} + \frac {B \sqrt {b \cos {\left (c + d x \right )}} \sin {\left (c + d x \right )}}{d \sqrt {\cos {\left (c + d x \right )}}} + \frac {C x \sqrt {b \cos {\left (c + d x \right )}} \sin ^{2}{\left (c + d x \right )}}{2 \sqrt {\cos {\left (c + d x \right )}}} + \frac {C x \sqrt {b \cos {\left (c + d x \right )}} \cos ^{\frac {3}{2}}{\left (c + d x \right )}}{2} + \frac {C \sqrt {b \cos {\left (c + d x \right )}} \sin {\left (c + d x \right )} \sqrt {\cos {\left (c + d x \right )}}}{2 d} & \text {for}\: d \neq 0 \\\frac {x \sqrt {b \cos {\left (c \right )}} \left (A + B \cos {\left (c \right )} + C \cos ^{2}{\left (c \right )}\right )}{\sqrt {\cos {\left (c \right )}}} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.45 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.52 \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C \sqrt {b} + 8 \, A \sqrt {b} \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) + 4 \, B \sqrt {b} \sin \left (d x + c\right )}{4 \, d} \]
[In]
[Out]
\[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \sqrt {b \cos \left (d x + c\right )}}{\sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Time = 0.60 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.44 \[ \int \frac {\sqrt {b \cos (c+d x)} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx=\frac {\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (4\,B\,\sin \left (c+d\,x\right )+C\,\sin \left (2\,c+2\,d\,x\right )+4\,A\,d\,x+2\,C\,d\,x\right )}{4\,d\,\sqrt {\cos \left (c+d\,x\right )}} \]
[In]
[Out]